package com.qf.microuser.point.controller;

import com.qf.common.core.common.R;
import com.qf.microuser.point.service.PointInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 天--道--酬--勤
 *
 * @author LiangGaoQiang
 * @ClassName PointRuleController
 * @Date: 2025/5/28 14:33
 * @Description: 描述
 */
@RestController
@RequestMapping("/user/point")
public class PointInfoController {

    @Autowired
    private PointInfoService pointInfoService;

    @PostMapping("/remote/add")
    public R addRemotePoint(Integer pointType) {
        Boolean result = pointInfoService.addRemotePoint(pointType);
        if (result) {
            return R.ok();
        } else {
            return R.fail();
        }
    }
}
